﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CodeGenerator.Models;

namespace CodeGenerator.Template.Service.Dto
{
    public partial class BaseGetAllRequestDto : ITemplate
    {
        public MetaData Data { get; set; }
        public List<LookupClassModel> lookups { get; set; }
        public List<PickupListModel> pickuplist { get; set; }
        public bool IsLookup(string modelName)
        {
            if (lookups != null)
            {
                //foreach (var lookup in lookups)
                //{
                //    if (lookup.Name.Equals(modelName)) return true;
                //}
                return lookups.Where(x => x.Name.Equals(modelName)).Any() ? true : false;
            }
            return false;
        }
        public string Filename
        {
            get { return "BaseGetAllRequestDto.cs"; }
        }

        public bool IsGenerateOneTime { get { return true; } }
        public bool IsGenerateFolder { get { return false; } }
        public bool IsRequiredOnlyOneMember { get { return false; } }
        public GenerateStyle GenerateStyle { get { return GenerateStyle.Normal; } }
    }
}
